package com.healthyeating.manage.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 活动对象 tb_activity
 *
 * @author 段奇乐
 * @date 2025-04-12
 */
public class Activity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 活动主键，自增ID
     */
    private Long activityId;

    /**
     * 活动名称
     */
    @Excel(name = "活动名称")
    private String activityName;

    /**
     * 活动内容
     */
    @Excel(name = "活动内容")
    private String activityBody;

    /**
     * 活动主题
     */
    @Excel(name = "活动主题")
    private Integer activityTheme;

    /**
     * 活动封面
     */
    @Excel(name = "活动封面")
    private String activityCover;

    /**
     * 参与人数
     */
    @Excel(name = "参与人数")
    private Integer participantsNum;

    /**
     * 参与人数上限
     */
    @Excel(name = "参与人数上限")
    private Integer maxParticipantsNum;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 删除标志，0：未删除，1：删除
     */
    private Integer delFlag;

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityBody(String activityBody) {
        this.activityBody = activityBody;
    }

    public String getActivityBody() {
        return activityBody;
    }

    public void setActivityTheme(Integer activityTheme) {
        this.activityTheme = activityTheme;
    }

    public Integer getActivityTheme() {
        return activityTheme;
    }

    public void setActivityCover(String activityCover) {
        this.activityCover = activityCover;
    }

    public String getActivityCover() {
        return activityCover;
    }

    public void setParticipantsNum(Integer participantsNum) {
        this.participantsNum = participantsNum;
    }

    public Integer getParticipantsNum() {
        return participantsNum;
    }

    public void setMaxParticipantsNum(Integer maxParticipantsNum) {
        this.maxParticipantsNum = maxParticipantsNum;
    }

    public Integer getMaxParticipantsNum() {
        return maxParticipantsNum;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("activityId", getActivityId())
                .append("activityName", getActivityName())
                .append("activityBody", getActivityBody())
                .append("activityTheme", getActivityTheme())
                .append("activityCover", getActivityCover())
                .append("participantsNum", getParticipantsNum())
                .append("maxParticipantsNum", getMaxParticipantsNum())
                .append("createTime", getCreateTime())
                .append("endTime", getEndTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
